Declare Function GetPrivateProfileString Lib "Kernel" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer, ByVal lpFileName As String) As Integer
'WriteProfileString
Declare Function WritePrivateProfileString Lib "Kernel" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpString As String, ByVal lplFileName As String) As Integer
Declare Function GetWindowsDirectory% Lib "Kernel" (ByVal f$, ByVal fLen%)
Global WinDir As String
Global avbdir As String
Global dftdir As String
Global tempAVB As String
Global filelinecount As Integer
Global thelist As listbox
Global curmodfile As String
Global AVBfile As String
Global listchange As Integer
Global GetDefaultDir As String
Global GetCurAvb As String
Type vbxType
linedata As String
flagvbxdata As Integer
End Type
Global vbxfiledata(1 To 50) As vbxType
' MsgBox parameters
Global Const MB_OK = 0 ' OK button only
Global Const MB_OKCANCEL = 1 ' OK and Cancel buttons
Global Const MB_ABORTRETRYIGNORE = 2 ' Abort, Retry, and Ignore buttons
Global Const MB_YESNOCANCEL = 3 ' Yes, No, and Cancel buttons
Global Const MB_YESNO = 4 ' Yes and No buttons
Global Const MB_RETRYCANCEL = 5 ' Retry and Cancel buttons
Global Const MB_ICONSTOP = 16 ' Critical message
Global Const MB_ICONQUESTION = 32 ' Warning query
Global Const MB_ICONEXCLAMATION = 48 ' Warning message
Global Const MB_ICONINFORMATION = 64 ' Information message
Global Const MB_APPLMODAL = 0 ' Application Modal Message Box
Global Const MB_DEFBUTTON1 = 0 ' First button is default
Global Const MB_DEFBUTTON2 = 256 ' Second button is default
Global Const MB_DEFBUTTON3 = 512 ' Third button is default
Global Const MB_SYSTEMMODAL = 4096 'System Modal
' MsgBox return values
Global Const IDOK = 1 ' OK button pressed
Global Const IDCANCEL = 2 ' Cancel button pressed
Global Const IDABORT = 3 ' Abort button pressed
Global Const IDRETRY = 4 ' Retry button pressed
Global Const IDIGNORE = 5 ' Ignore button pressed
Global Const IDYES = 6 ' Yes button pressed
Global Const IDNO = 7 ' No button pressed
Function convpath (path As String) As String
If Not Right$(path, 1) = "\" Then
convpath = path & "\"
Else
convpath = path
End If
End Function
Sub Fillfile (fillfilename As String)
Dim fhandle As Integer
Dim cnt As Integer
fhandle = FreeFile
Open fillfilename For Output As fhandle
For cnt = 0 To frmmain.lstVBX.ListCount - 1
Print #fhandle, frmmain.lstVBX.List(cnt)
Next cnt
Close fhandle
End Sub
Function filllist (Fileavbx As String, fileavbxpath As String) As Integer